﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QL_DTTN.DTO.DTO;
namespace QL_DTTN.TTTS.BUS
{
  public static  class DiemCong_Bus
    {
      public static DataTable dataTable()
      {   
          return new DiemCong().selectAll();
      }
      public static DataTable dataTable(string soBaoDanh)
      {
          return new ChiTietDiemCong().dataTable(soBaoDanh);
      }
      public static bool Xoa(ChiTietDiemCong chiTietDiemCong)
      {
          return new ChiTietDiemCong().Xoa(chiTietDiemCong.SoBaoDanh,chiTietDiemCong.MaDiemCong);
      }
      public static bool themChiTiet(List<ChiTietDiemCong> lstChiTietDiemCong)
      {
          return new ChiTietDiemCong().them(lstChiTietDiemCong);
      }
      public static double TongDiemCong(string soBaoDanh)
      {
          return new ChiTietDiemCong().TongDiemCong(soBaoDanh);
      }
    }
}
